package cn.swust.classdemo.power;

public class Hello extends Hi  {  
  	private Kitty kitty = new Kitty();  
  
    public Hello() {}  
      
    public String sayHi() {  
       String hi = super.sayHi();          
        System.out.println("Hello！" + hi);  
        return "Hello！" + hi;
    }  
      
      
    public String kittyHi() {  
       String hi = kitty.sayHi();  
        return "Hello！" + hi;
    }  
  
    
    public int getKittyAge(){
    	return kitty.getAge();
    }
    
    public Kitty getKitty() {  
        return kitty;  
    }  
  
    public void setKitty(Kitty kitty) {  
        this.kitty = kitty;  
    }  
      
}  
